﻿#pragma once
#include "RGB.h"
#include "stdafx.h"
#include "CVector.h"
#include "CT2.h"
class CPoint2
{
public:
	CPoint2(void);
	CPoint2(int x, int y);
	CPoint2(int x, int y, CRGB c);
	CPoint2(int x, int y, CVector n);
	CPoint2(int x, int y, CVector n, CT2 t);

	CPoint2(int x, int y, CRGB c, CT2 t);
	CPoint2(int x, int y, CRGB c, CVector n);
	virtual ~CPoint2(void);
	friend CPoint2 operator + (const CPoint2& pt0, const CPoint2& pt1);//
	friend CPoint2 operator - (const CPoint2& pt0, const CPoint2& pt1);
	friend CPoint2 operator * (const CPoint2& pt, double scalar);
	friend CPoint2 operator * (int scalar, const CPoint2& pt);
	friend CPoint2 operator / (const CPoint2& pt, double scalar); 
public:
	int x;
	int y;
	CT2 t;
	CVector n;
	CRGB c;
};

